package com.design.principle.singleresponsibility.sjms;

import com.design.principle.singleresponsibility.sjms.User;

import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;

public class UserDao {
    //查找所有用户
    public List<User> getAllUser(){
        List<User> userList =new ArrayList<>();
        String sql="select * from user";

        return userList;
    }
    //根据用户名查找用户
}
